/**
 * Created by flove on 2017/5/2.
 */
$(function () {
    $('#container_chart3').highcharts({
        chart: {
            type: 'column'
        },
        title: {
            text: '健康币汇总'
        },
        subtitle: {
            text: ''
        },
        xAxis: {
            type: 'category',
            labels: {
                rotation: -45,
                style: {
                    fontSize: '13px',
                    fontFamily: 'Verdana, sans-serif'
                }
            }
        },
        yAxis: {
            min: 0,
            title: {
                text: '金额'
            }
        },
        legend: {
            enabled: false
        },
        tooltip: {
            pointFormat: '健康币总额: <b>{point.y:.1f} 百万</b>'
        },
        series: [{
            name: '健康币总额',
            data: [
                ['1', 24.25],
                ['2', 23.50],
                ['3', 21.51],
                ['4', 16.78],
                ['5', 16.06],
                ['6', 15.20],
                ['7', 14.16],
                ['8', 13.51],
                ['9', 13.08],
                ['10', 12.44],
                ['11', 12.19],
                ['12', 12.03],
                ['13', 10.46],
                ['14', 10.07],
                ['15', 10.05],
                ['16', 9.99],
                ['17', 9.78],
                ['18', 9.73]
            ],
            dataLabels: {
                enabled: true,
                rotation: -90,
                color: '#FFFFFF',
                align: 'right',
                format: '{point.y:.1f}', // one decimal
                y: 10, // 10 pixels down from the top
                style: {
                    fontSize: '13px',
                    fontFamily: 'Verdana, sans-serif'
                }
            }
        }]
    });
});
